package com.corner.presenter.base;


import com.corner.model.cornerservice.domain.Location;
import com.corner.model.cornerservice.helper.LocationHelper;
import com.corner.ui.view.base.BaseView;

import rx.android.schedulers.AndroidSchedulers;
import rx.functions.Action1;

/**
 * Created by Administrator on 2015/6/12.
 * 描述：Presenter的基类
 */
public class BasePresenter<V extends BaseView> {
    protected V view;
    private boolean isActive;

    protected boolean isActive() {
        return isActive;
    }

    public void setView(V view) {
        this.view = view;
    }

    public void onDestroy() {
        isActive = false;
        view = null;
    }

    public void onResume() {
        isActive = true;
    }

    public void onPause() {
        isActive = false;
    }


}
